package com.hao.wms.service.impl;

import com.hao.wms.dao.IBrandDao;
import com.hao.wms.domain.Brand;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IBrandService;

import java.util.List;

public class BrandServiceImpl implements IBrandService {
	private IBrandDao dao;
	

	public void setDao(IBrandDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Brand brand) {
		dao.save(brand);

	}

	@Override
	public void update(Brand brand) {
		dao.update(brand);

	}

	@Override
	public void delete(Brand brand) {
		dao.delete(brand);

	}

	@Override
	public Brand get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Brand> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
